using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class KeyPressEvent
{

    public static bool isKeyPressAttack()
    {

        bool attack = Input.GetKey(KeyCode.X);
        return attack;
    }
    public static bool isKeyPressDownAttack()
    {
        bool attack = Input.GetKeyDown(KeyCode.X);
        return attack;
    }

    public static float HorizontalKey()
    {
        float horizontal = Input.GetAxis("Horizontal");
        return horizontal;
    }

    public static bool isKeyPressDownDash()
    {
        bool dash = Input.GetKeyDown(KeyCode.Z);
        return dash;
    }

    public static bool isKeyPressDash()
    {
        bool dash = Input.GetKey(KeyCode.Z);
        return dash;
    }

    public static bool isKeyPressLeft()
    {
        bool attack = Input.GetKey(KeyCode.LeftArrow);
        return attack;
    }
    public static bool isKeyPressRight()
    {
        bool attack = Input.GetKey(KeyCode.RightArrow);
        return attack;
    }
    public static bool isKeyPressDown()
    {
        bool down = Input.GetKey(KeyCode.DownArrow);
        return down;
    }

    public static float VerticalKey()
    {
        float vertical = Input.GetAxis("Vertical");
        return vertical;
    }

    public static bool isKeyPressJump()
    {
        bool jumpC = Input.GetKey(KeyCode.C);
        return jumpC;
    }

    public static bool isKeyPressDownJump()
    {
        bool jumpC = Input.GetKeyDown(KeyCode.C);
        return jumpC;
    }



}
